# $Id: makefile,v 1.23 1997/02/04 15:31:00 digulla Exp $ TOP=../.. include $(TOP)/config/make.cfg DEST=../html/ FILES = background faq devinfo-1 devinfo-2 devinfo-3 devinfo-4 devinfo-5 \ devinf_inside devinf_outside \ history links AUTODOC_SRCS = $(wildcard $(TOP)/config/m68k-native/*.s $(TOP)/rom/exec/*.c \ $(TOP)/rom/dos/*.c $(TOP)/rom/intuition/*.c $(TOP)/rom/graphics/*.c \ $(TOP)/rom/utility/*.c $(TOP)/apps/compiler/alib/*.c \ $(TOP)/apps/compiler/aros/*.c \ $(TOP)/rom/devs/*.c $(TOP)/apps/compiler/clib/*.c \ $(TOP)/workbench/libs/*/*.c) INCLUDE_SRCS = $(wildcard $(TOP)/include/*.h $(TOP)/include/*/*.h) SRCS = $(foreach f,$(FILES),$(f).src) HTML = $(DEST)index.html $(foreach f,$(FILES),$(DEST)$(f).html) all : $(DEST)srcs autodocs $(HTML) $(DEST)filesystems.doc \ $(DEST)cgi-bin/search.cgi \ $(DEST)cgi-bin/counter.cgi index : cd $(DEST) ; glimpseindex -H . -o . $(DEST)srcs: ln -s $(TOP) $(DEST)srcs $(DEST)cgi-bin/search.cgi : search.cgi cp search.cgi $@ chmod 755 $@ $(DEST)cgi-bin/counter.cgi : counter.cgi cp counter.cgi $@ chmod 755 $@ $(DEST)filesystems.doc: filesystems.doc cp filesystems.doc $(DEST) clean : rm -f $(HTML) $(DEST)index.html : $(DEST)toc.html doc_header.html doc_footer.html cat doc_header.html $(DEST)toc.html \ doc_footer.html | sed "s/\\\\today/`date "+%d %b %Y"`/" \ > $@ chmod a+r $@ $(DEST)toc.html : $(SRCS) tochtml.gawk @echo "Generating TOC" @gawk -f tochtml.gawk $(SRCS) > $@ @echo "